package com.cennavi.mineplay.mineplay_data.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/test")
public class Test {
	
	@Autowired
	protected JdbcTemplate jdbc;

	@RequestMapping("/data1")
	public Object data1() {
		Map<String,String> m = new HashMap<String,String>();
		
		m.put("name", "lilei");
		
		return jdbc.queryForList("select * from test1");
		
//		return m;
	}
}
